import { Component, OnInit } from '@angular/core';
import {Location} from '@angular/common'
import { Router} from "@angular/router";

@Component({
  selector: 'app-stability-overview',
  templateUrl: './stability-overview.component.html',
  styleUrls: ['./stability-overview.component.css']
})
export class StabilityOverviewComponent implements OnInit {

  constructor(
  	private location: Location,
  	private router: Router
  ) { }

  ngOnInit() {
  }
  public goBack(flag?:boolean){
    if(flag){
      this.location.back()
    }
    else {
      this.router.navigate(['/pages/home'])
    }
  }
  navigator() {
    this.router.navigate(['/pages/performance-analysis/stability-trend-overview/2'])
  }
}
